<!doctype html>
<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>Beego_Admin</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/xadmin.css">
    <link rel="stylesheet" href="/static/css/theme3835.min.css">
    <script src="/static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/js/xadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script>
        // 是否开启刷新记忆tab功能
        // var is_remember = false;
    </script>
</head>
<body class="index">
<div class="">
    <div class="layui-tab tab" lay-filter="preview_tab" >
        <ul class="layui-tab-title" style="">
            <li class="model layui-this" lay-allowclose="false" onclick="taggle_tab(this, 'model')">model.go</li>
            <li class="controller" lay-allowclose="false" onclick="taggle_tab(this, 'controller')">controller.go</li>
        </ul>
        <div class="layui-tab-content" style="margin-top: 0px">
            <div class="layui-tab-item layui-show tab-model">
                <pre class="layui-code" lay-skin="notepad">
                    {{.ret.model}}
                </pre>
            </div>
            <div class="layui-tab-item tab-controller">
                <pre class="layui-code" lay-skin="notepad">
                    {{.ret.controller}}
                </pre>
            </div>
        </div>
        <div id="tab_show"></div>
    </div>
</div>
<div class="page-content-bg"></div>
<style id="theme_style"></style>
<script>
    function taggle_tab(element, tab) {
        let model_tab = $(".tab-model")
        let controller_tab = $(".tab-controller")
        if(tab === "model"){
            model_tab.show();
            controller_tab.hide();
        }else if(tab === "controller"){
            model_tab.hide();
            controller_tab.show();
        }
    }

</script>
</body>

</html>